import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  linkActiveClass: 'active',
  routes: [
    {
      path: '/',
      name: 'index',
      component: () => import('@/components/index/index'),
      redirect: '/recommond',
      children: [
        {
          path: 'recommond',
          name: 'recommond',
          component: () => import('@/components/recommondList/recommonMusic')
        },
        {
          path: 'hotMusic',
          name: 'hotMusic',
          component: () => import('@/components/hotMusicList/hotMusic')
        },
        {
          path: 'searchList',
          name: 'searchList',
          component: () => import('@/components/searchList/searchList')
        }
      ]
    }
  ]
})
